<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/index.css">
    <link rel="stylesheet" href="../css/reset.css">
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/Swiper/5.4.5/css/swiper.css">
</head>

<body>
    <div class="header-reg regwrap">
        <div class="searchBox">
            <ul class="searchtop">
                <li><a href="#">我的积分</a>&nbsp;<i>|</i>&nbsp; </li>
                <li><a href="/ShopCart/CheckOut.aspx" rel="nofollow">购物车</a>&nbsp;<i>|</i>&nbsp; </li>
                <li><a href="#">官方微博</a>&nbsp;<i>|</i>&nbsp;
                </li>
                <li><a>订购热线:&nbsp;&nbsp;&nbsp;<span>400-884-1919</span> </a>
                </li>
            </ul>
        </div>

        <div class="clear">
        </div>

        <div class="search-center">
            <div class="logo float_left">
                <img src="../images/logo01.png" alt="">
            </div>
            <div class="logo1 float_left">
                <img src="../images/_tips2.jpg" alt="">
            </div>
            <div class="search_c">

                <div class="search_input">
                    <img src="../images/fdj.PNG" alt="">
                    <input type="text" id="txt">
                    <div id="btn"></div>
                </div>
            </div>
            <div class="search-r float_right">
                <img src="../images/tips3.jpg" alt="">
            </div>
        </div>
    </div>
    <div id="navList">
        <div class="navList regwrap">
            <div class="navList_l float_left">
                <div class="navH">
                    <p>商品分类</p>
                </div>
            </div>
            <div class="menu_list1 float_left">
                <ul>
                    <li><a href="#">首页</a></li>
                    <li><a href="#">列级名庄</a></li>
                    <li><a href="#">场合选酒</a></li>
                    <li><a href="#">活动专区</a></li>
                    <li><a href="#">积分商城</a></li>
                    <li><a href="#">店面展示</a></li>
                    <li><a href="#">招商加盟 </a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="useregBox regwrap">
        <div class="userreg ">
            <p>用户登录</p>
        </div>
    </div>
    <div class="boxform regwrap">
        <div class="formbox">

            <div class="formTxt">
                <p><span>*</span>用户名:</p>
                <input type="text" name="" id="userId">

            </div>
            <div class="formTxt">
                <p><span>*</span>密码:</p>
                <input type="text" name="" id="passId">
            </div>
            <button id="btn1">
                登录
            </button>
            <div id="message-box">


            </div>

            <img src="../images/loginad1.jpg" alt="">

        </div>
    </div>
    <!-- 1 -->
    <div class="footer-wrap1 regwrap">
        <div class="footerCenter1">
            <ul class="footCenter1_l">
                <li>
                    <h3>购物指南</h3>
                    <p><a href="#">购物演示</a></p>
                    <p><a href="#">新用户注册</a></p>
                    <p><a href="#">会员积分</a></p>

                </li>
                <li>
                    <h3>支付帮助</h3>
                    <p><a href="#">在线支付</a></p>
                    <p><a href="#">货到付款</a></p>
                    <p><a href="#">银行转账</a></p>
                    <p><a href="#">支票支付</a></p>
                    <p><a href="#">发票说明</a></p>
                </li>
                <li>
                    <h3>配送服务</h3>
                    <p><a href="#">运费收取标准</a></p>
                </li>
                <li>
                    <h3>售后服务</h3>
                    <p><a href="#">服务保障承诺</a></p>
                    <p><a href="#">如何办理退换货</a></p>
                </li>

            </ul>
            <div class="footerCenter1_r float_right">
                <img src="../images/telinfo.gif" alt="">

            </div>

        </div>
    </div>

    <div class="bottomLinks regwrap">
        <a href="#">关于我们</a>
        <a href="#">联系我们</a>
        <a href="#">网站地图</a>
        <a href="#"> 帮助中心</a>
        <a href="#">友情链接</a>
        <a href="#">人才招聘</a>
        <a href="#">招商加盟</a>
    </div>

    </div>
    <div class="footlast regwrap">
        <p>copyright © 2009-2018 www.19online.cn | 经营许可证：粤b2-20080416|粤icp备：06088898号</p>
    </div>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script>
        $(".search_input").on("click", function (e) {
            $("#txt").css({
                display: "block"
            })
        })
        $("#btn1").click(function () {
            $.post(
                "loginCheck.php",
                {
                    "username": $("#userId").val(),
                    "password": $("#passId").val(),
                },
                function (obj) {
                    if (JSON.parse(obj).join() == []) {
                        $("#message-box").html("该用户不存在,<a href='register.html'>请注册</a>").css({ "color": "red" })
                    }
                    else if (JSON.parse(obj) !== null) {
                        // $("#message-box").html("<a href='index.html'>登录</a>").css({ "color": "green" })
                        window.location.href = 'index.html';
                    }

                },
            );
        });

    </script>
</body>

</html>